/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pojo;

import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author pvhuy
 */
@Entity
@Table(name=LoaiKhachHang.TABLE_LOAIKHACHHANG)
public class LoaiKhachHang extends Base{
    public static final String TABLE_LOAIKHACHHANG = "LoaiKhachHang";

    protected static final String COLUMN_TENLOAIKHACHHANG = "TenLoaiKhachHang";
    private static final int LENGTH_TENLOAIKHACHHANG = 45;
    @Column(name=COLUMN_TENLOAIKHACHHANG, length=LENGTH_TENLOAIKHACHHANG, nullable=false)
    private String tenLoaiKhachHang;

    @OneToMany(mappedBy="loaiKhachHang", cascade=CascadeType.ALL)
    private List<HinhThucThanhToan> danhSachHinhThucThanhToan;

    /**
     * @return the tenLoaiKhachHang
     */
    public String getTenLoaiKhachHang() {
        return tenLoaiKhachHang;
    }

    /**
     * @param tenLoaiKhachHang the tenLoaiKhachHang to set
     */
    public void setTenLoaiKhachHang(String tenLoaiKhachHang) {
        this.tenLoaiKhachHang = tenLoaiKhachHang;
    }

    public List<HinhThucThanhToan> getDanhSachHinhThucThanhToan() {
        return danhSachHinhThucThanhToan;
    }

    public void setDanhSachHinhThucThanhToan(List<HinhThucThanhToan> danhSachHinhThucThanhToan) {
        this.danhSachHinhThucThanhToan = danhSachHinhThucThanhToan;
    }

    
}
